package com.crm.pojo;

import javax.persistence.*;
import java.io.Serializable;


/**
 * The persistent class for the PURCHASEPRODUCTIONDETAIL database table.
 */
@Entity
@NamedQuery(name = "Purchaseproductiondetail.findAll", query = "SELECT p FROM Purchaseproductiondetail p")
public class Purchaseproductiondetail implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @SequenceGenerator(initialValue = 1,allocationSize = 1 ,name = "PURCHASEPRODUCTIONDETAIL_PPDID_GENERATOR", sequenceName = "SEQ3")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "PURCHASEPRODUCTIONDETAIL_PPDID_GENERATOR")
    private Long ppdid;
    //采购id
    private Long pidfk;
    //采购总价
    private Double ppcost;
    //采购数量
    private Long ppcount;
    //采购单价
    private Double ppmoney;
    //产品id
    private Long proid;

    @Transient
    private String pcompany;
    @Transient
    private String pimg;
    @Transient
    private String pname;
    @Transient
    private String pCategoryname;

    @Column(name = "IS_DEL")
    private String purchaseproductiondetailIsDel;

    public Purchaseproductiondetail() {
    }

    public String getPcompany() {
        return pcompany;
    }

    public void setPcompany(String pcompany) {
        this.pcompany = pcompany;
    }

    public String getPimg() {
        return pimg;
    }

    public void setPimg(String pimg) {
        this.pimg = pimg;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getpCategoryname() {
        return pCategoryname;
    }

    public void setpCategoryname(String pCategoryname) {
        this.pCategoryname = pCategoryname;
    }

    public Long getPpdid() {
        return this.ppdid;
    }

    public void setPpdid(Long ppdid) {
        this.ppdid = ppdid;
    }

    public Long getPidfk() {
        return this.pidfk;
    }

    public void setPidfk(Long pidfk) {
        this.pidfk = pidfk;
    }

    public Double getPpcost() {
        return this.ppcost;
    }

    public void setPpcost(Double ppcost) {
        this.ppcost = ppcost;
    }

    public Long getPpcount() {
        return this.ppcount;
    }

    public void setPpcount(Long ppcount) {
        this.ppcount = ppcount;
    }

    public Double getPpmoney() {
        return this.ppmoney;
    }

    public void setPpmoney(Double ppmoney) {
        this.ppmoney = ppmoney;
    }

    public Long getProid() {
        return this.proid;
    }

    public void setProid(Long proid) {
        this.proid = proid;
    }

    public String getPurchaseproductiondetailIsDel() {
        return this.purchaseproductiondetailIsDel;
    }

    public void setPurchaseproductiondetailIsDel(String purchaseproductiondetailIsDel) {
        this.purchaseproductiondetailIsDel = purchaseproductiondetailIsDel;
    }

}